// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import Client from '@api/face/api/FaceDeviceApi'

import SubmitClass from '@api/face/model/FaceDeviceSyncReq'

const CLIENT = CORE.grpcCLIENT(Client)

// ============================== 导出远程接口 ============================== //

export default {
  // —————————————————————————————— 提交 —————————————————————————————— //

  async submit(one, TIP = '重新同步') {
    const DTO = CORE.grpcDTO(SubmitClass, one)
    await CORE.grpc(TIP, CLIENT, 'faceDeviceSync', DTO)
    return `${TIP}：已提交`
  },
}
